package cn.ggy.dao;

import cn.ggy.polo.Student;
import cn.ggy.util.MybatisUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

public class StuDaoImpl implements StuDao{
    @Override
    public List<Student> findStus() {

        SqlSession session = MybatisUtil.getSession();
        List<Student> stus = session.getMapper(StuDao.class).findStus();

        return stus;
    }
}
